<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BWePage
 *
 * @author jianfeng
 */
class BWePage extends BApp {

    public function run($data = NULL) {
        parent::run($data);
        $cooker = new BAEventCooker();
        $cooker->addEventType('wePage', '微主页');
        $cooker->addEventType('wePage.companyInfo', '公司展示');
        $cooker->addEventType('wePage.productInfo', '产品展示');
        
        //register child control
        $screen = Blyn::app()->getUIManager()->getCurrentScreen();
        $appAdminControl = new BUIAppAdmin('appAdmin');
        $screen->addChildControl($appAdminControl);

        $sender = Blyn::app()->getUIManager()->getSenderControl();

        if ($sender instanceof BUIOperation) {
            $screen = Blyn::app()->getUIManager()->getCurrentScreen();
            $cooker->onShowEventList($screen);
        }
    }

    //put your code here
    public function runClient($data = NULL) {
        
    }

    public function runManage($data = NULL) {
        
    }

    public function runAdmin($data = NULL) {
        
    }

}
